overlay: Always align widgets relative to the overlay
authorBenjamin Otte <otte@redhat.com>
Thu, 20 Aug 2015 22:46:35 +0000 (00:46 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 20 Aug 2015 22:47:30 +0000 (00:47 +0200)
... not to the contained widget, which might not occupy the whole
overlay when an align mode is set.

gtk/gtkoverlay.c

index 75253a5932a5fcf9049a9e7cae9da569cd20c021..cbad6b89437360a6c1abb704945d2bfe46ff869e 100644 (file)
@@ -212,13 +212,6 @@ gtk_overlay_get_main_widget_allocation (GtkOverlay *overlay,
       main_alloc.width = gtk_widget_get_allocated_width (grandchild);
       main_alloc.height = gtk_widget_get_allocated_height (grandchild);
     }
-  else if (GTK_IS_WIDGET (main_widget))
-    {
-      main_alloc.x = 0;
-      main_alloc.y = 0;
-      main_alloc.width = gtk_widget_get_allocated_width (main_widget);
-      main_alloc.height = gtk_widget_get_allocated_height (main_widget);
-    }
   else
     {
       main_alloc.x = 0;